package com.sitech.ibnms.util.remoteControl;

public class RemoteControllerFactory {

	public static RemoteController createRemoteController(String ip, String type, String username, String password) {
		if ("SSH".equals(type)) {
			return new SSHThread(ip, 22, username, password);
		} else if ("TELNET".equals(type)) {
			return new TelnetThread(ip, 23, username, password);
		} else {
			return new SSHThread(ip, 22, username, password);
		}
	}
	
}
